package net.hn.hnms.biz.mine.domain;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Table(name = "mine_config", schema = "public", catalog = "huaneng-smart-mine")
@ApiModel("矿井安全信息配置")
@Data
public class MineConfig extends BaseModel implements Serializable {

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "安全周期开始时间")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date safetyStart;

    @ApiModelProperty(value = "安全等级")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String safetyLevel;

    @ApiModelProperty(value = "瓦斯等级")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String gasLevel;

    @ApiModelProperty(value = "水文地质条件")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String hydrologicalCondition;

    @ApiModelProperty(value = "冲击地压等级")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String rockBurst;

    @ApiModelProperty(value = "地质类型")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String geologicalType;

    @ApiModelProperty(value = "现采工作面个数")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer workingFaces;

    @ApiModelProperty(value = "年度周期开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date yearStart;

}
